﻿
(function ($) {
    $.getUrlParam = function (name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]); return null;
    }
})(jQuery);

$(document).ready(function () {

    var strun = "/RDLC/AgoCollectStorageRDLC.aspx?insid=" + $.getUrlParam('insid');
    var strin = "/RDLC/InstorageRDLC.aspx?inStorID=" + $.getUrlParam('insid');
    var strfl = "/RDLC/ins_fl.aspx?insid=" + $.getUrlParam('insid');
    var strsh = "/RDLC/ins_sh.aspx?insid=" + $.getUrlParam('insid');
    $("#a_unReport").attr("href", strun);
    $("#a_inReport").attr("href", strin);
    $("#a_fl").attr("href", strfl);
    $("#a_sh").attr("href", strsh);
    $("#div_SelectReport").dialog({ 
        width: 400,
        height:150,
        resizable: false,
        position: 'center',
        dialogClass: "noClose",
        modal: true
    });
    $('a.ui-dialog-titlebar-close').hide();
});
